package cn.tedu.tmall.admin.content.dao.repository;

import cn.tedu.tmall.admin.content.pojo.param.ArticleAddParam;
import cn.tedu.tmall.admin.content.pojo.po.ArticleDetailPO;
import cn.tedu.tmall.admin.content.pojo.po.ArticlePO;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface IArticleRepository {
    @Transactional
    void add(ArticleAddParam articleAddParam);

    Integer countArticleByTitle(String title);


    Integer saveArticleDetail(ArticleDetailPO articleDetailPO);

    Integer saveArticle(ArticlePO articlePO);
}
